{% load i18n %}
{% extends "base.html" %}
{% block title %}{{title}}{% endblock %}
{% block blog %}
{% if featured%}

{% include "include/nav_relative.html" %}	

<div id="post-featured">
	<div class="post-comic" id="post-comic">
        {{featured.document.comic}}
    </div>	
	<div class="post-header">
		<div class="post-title"><a href="/{{featured.relative_permalink}}">{{featured.title}}</a></div>
		<div class="post-date"> {{featured.date|timezone:BLOG.time_zone_offset|date:"l, F d, Y"}} </div>
	</div>	
    <div class="post-body-detail">
        {{featured.document.text}}
    </div>		
	<div class="post-footer">
    	<div class="comment-count">
    		<a href="/{{featured.relative_permalink}}#comments">Comment</a><span class="comment-count-total"> : {{featured.weblogreactions_set.count}}</span>
		</div>
        {% if featured.tags %}
        <div>
            Tags:
            {% for tag in featured.tags %}
            <a href="/tag/{{ tag|unquote }}">{{ tag|unquote }}</a>{% if not forloop.last %},{% endif %}
            {% endfor %}
        </div>
        {% endif %}
        {% if user_is_admin %}
        <div>
            <span class="post-author">{% blocktrans with featured.author as b_author%}Posted by {{ b_author }} at{% endblocktrans %}</span>
            <span class="post-timestamp">
                <A class="timestamp-link" href="/{{featured.relative_permalink}}">{{featured.date|timezone:BLOG.time_zone_offset|date:"H:i A"}}</A>
            </span>
        </div>
        <div>
        	<span>
        		:<a href='/edit/blog/{{featured.key.id}}'>{% trans "edit" %}</a>: 
				:<a href='/delete/blog/{{featured.key.id}}'>{% trans "delete" %}</a>:
			</span>
	        {% ifnotequal featured.lastModifiedDate Null %}
	        	{% blocktrans with featured.lastModifiedDate as blog_lastModData and featured.lastModifiedBy as blog_lastModBy %}Edited at {{blog_lastModData}} by {{blog_lastModBy}}.{% endblocktrans %}
	        {% endifnotequal %}
		</div>
        {% endif  %}
    </div>
</div>

{% endif %}	

<div id="posts-section">	
{% if featured%}	
	<div id="posts-section-title"><h2>blog...</h2></div>
{% endif %}		
<span id="posts-left">
    {% include "include/blog_list_main.html" %}
</span>	
<span id="posts-right">
	{% include "include/right_column.html" %}
</span>
</div>

{% endblock %}

